﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Zr/ZR.Master" AutoEventWireup="true"
    CodeBehind="BanJi.aspx.cs" Inherits="EducationManagementSystem.Zr.BanJi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        table
        {
            background-color: #c1ddee;
        }
        #gh
        {
            background-color: #9984b0;
        }
        .style1
        {
            width: 364px;
        }
    </style>
    <div id="Terr" runat="server">
    </div>
    <table align="center" cellspacing="1" cellpadding="23" width="400px">
        <tr>
            <td align="left" class="style1">
                班级名称：
                <asp:TextBox ID="txtBm" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    Display="Dynamic" ControlToValidate="txtBm" ForeColor="red"></asp:RequiredFieldValidator>--%>
                <asp:Button ID="Button1" runat="server" Width="50px" Text="添加" OnClick="Button1_Click">
                </asp:Button>
            </td>
        </tr>
        <tr align="center" id="gh">
            <td colspan="7" id="TDtitie" runat="server" class="style1">
                <font face="宋体"></font>
            </td>
        </tr>
        <tr>
            <td class="style1" align="center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                    PageSize="3" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="className" HeaderText="班级名称">
                            <HeaderStyle Height="40px" Width="200px" />
                            <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button ID="Button5" runat="server" Text="删除" CommandName="de" CommandArgument='<%#Eval("classID") %>' />
                            </ItemTemplate>
                            <HeaderStyle Height="10px" Width="45px" />
                            <ItemStyle Height="25px" Width="80px" HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
